package org.deng.java.proxy.staticproxy;

import org.deng.java.proxy.staticproxy.ChanelFactory;
import org.deng.java.proxy.staticproxy.GuChiFactory;
import org.deng.java.proxy.staticproxy.XiaoHongSellProxy;

/**
 * packageName org.deng.java.proxy
 *
 * @author dengjinzhang
 * @version JDK 1.8
 * @date 2024/9/11
 * @description TODO
 */
public class XiaoMing {
    public static void main(String[] args) {
        ChanelFactory factory = new ChanelFactory();
        XiaoHongSellProxy proxy = new XiaoHongSellProxy(factory);
        proxy.sellPerfume(1999.99);

        GuChiFactory guChiFactory = new GuChiFactory();
        XiaoHongSellProxy proxy1 = new XiaoHongSellProxy(guChiFactory);
        proxy1.sellPerfume(2999.99);
    }
}
